package day017.homework.p1;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入两个整数：");
        int a = sc.nextInt();
        int b = sc.nextInt();
        try {
            int res = a / b;
            System.out.println("结果为：" + res);
        } catch (Exception e) {
            System.out.println("除数不能为0！");
        }
    }
}
